﻿/* $RCSFile: FooterTable.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/ADNCRM.Core/UI/WebControls/FooterTable.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:30  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Globalization;

using AddonNice.Diagnostics;
using AddonNice.Core;
using AddonNice.UI;
using AddonNice.UI.WebControls;
using AddonNice.Configuration;

using Trace2    =   System.Diagnostics.Trace;

namespace AddonNice.UI.WebControls
{
    [ToolboxData("<{0}:FooterTable runat=server></{0}:FooterTable>")]
    public class FooterTable : HtmlTable
    {
		protected override void OnInit(EventArgs e)
		{
            if (WebControlsTraceSwitch.Sw.TraceVerbose)
                Trace2.WriteLine( string.Format(CultureInfo.InvariantCulture,"[V]FooterTable OnInit BEG IsUnderCRM: {0}",PortalSettings.IsUnderCRM),WebControlsTraceSwitch.Sw.Info);
            if( PortalSettings.IsUnderCRM )
                Visible =   false;
            base.OnInit(e);
            if (WebControlsTraceSwitch.Sw.TraceVerbose)
                Trace2.WriteLine( "[V]FooterTable OnInit END.",WebControlsTraceSwitch.Sw.Info);
        }
    }
}
